<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

<html lang="en">

<head>
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  <title>LCOV - code analysis - /usr/include/google/protobuf/unknown_field_set.h</title>
  <link rel="stylesheet" type="text/css" href="../../../../gcov.css">
</head>

<body>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="title">LCOV - code coverage report</td></tr>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>

    <tr>
      <td width="100%">
        <table cellpadding=1 border=0 width="100%">
          <tr>
            <td width="10%" class="headerItem">Current view:</td>
            <td width="35%" class="headerValue"><a href="../../../../index.html">top level</a> - <a href="index.html">usr/include/google/protobuf</a> - unknown_field_set.h<span style="font-size: 80%;"> (source / <a href="unknown_field_set.h.func-sort-c.html">functions</a>)</span></td>
            <td width="5%"></td>
            <td width="15%"></td>
            <td width="10%" class="headerCovTableHead">Hit</td>
            <td width="10%" class="headerCovTableHead">Total</td>
            <td width="15%" class="headerCovTableHead">Coverage</td>
          </tr>
          <tr>
            <td class="headerItem">Test:</td>
            <td class="headerValue">code analysis</td>
            <td></td>
            <td class="headerItem">Lines:</td>
            <td class="headerCovTableEntry">2</td>
            <td class="headerCovTableEntry">3</td>
            <td class="headerCovTableEntryLo">66.7 %</td>
          </tr>
          <tr>
            <td class="headerItem">Date:</td>
            <td class="headerValue">2020-09-11 22:50:33</td>
            <td></td>
            <td class="headerItem">Functions:</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntry">0</td>
            <td class="headerCovTableEntryHi">-</td>
          </tr>
          <tr>
            <td class="headerItem">Legend:</td>
            <td class="headerValueLeg">            Lines:
            <span class="coverLegendCov">hit</span>
            <span class="coverLegendNoCov">not hit</span>
</td>
            <td></td>
          </tr>
          <tr><td><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
        </table>
      </td>
    </tr>

    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
  </table>

  <table cellpadding=0 cellspacing=0 border=0>
    <tr>
      <td><br></td>
    </tr>
    <tr>
      <td>
<pre class="sourceHeading">          Line data    Source code</pre>
<pre class="source">
<a name="1"><span class="lineNum">       1 </span>            : // Protocol Buffers - Google's data interchange format</a>
<span class="lineNum">       2 </span>            : // Copyright 2008 Google Inc.  All rights reserved.
<span class="lineNum">       3 </span>            : // https://developers.google.com/protocol-buffers/
<span class="lineNum">       4 </span>            : //
<span class="lineNum">       5 </span>            : // Redistribution and use in source and binary forms, with or without
<span class="lineNum">       6 </span>            : // modification, are permitted provided that the following conditions are
<span class="lineNum">       7 </span>            : // met:
<span class="lineNum">       8 </span>            : //
<span class="lineNum">       9 </span>            : //     * Redistributions of source code must retain the above copyright
<span class="lineNum">      10 </span>            : // notice, this list of conditions and the following disclaimer.
<span class="lineNum">      11 </span>            : //     * Redistributions in binary form must reproduce the above
<span class="lineNum">      12 </span>            : // copyright notice, this list of conditions and the following disclaimer
<span class="lineNum">      13 </span>            : // in the documentation and/or other materials provided with the
<span class="lineNum">      14 </span>            : // distribution.
<span class="lineNum">      15 </span>            : //     * Neither the name of Google Inc. nor the names of its
<span class="lineNum">      16 </span>            : // contributors may be used to endorse or promote products derived from
<span class="lineNum">      17 </span>            : // this software without specific prior written permission.
<span class="lineNum">      18 </span>            : //
<span class="lineNum">      19 </span>            : // THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
<span class="lineNum">      20 </span>            : // &quot;AS IS&quot; AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
<span class="lineNum">      21 </span>            : // LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
<span class="lineNum">      22 </span>            : // A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
<span class="lineNum">      23 </span>            : // OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
<span class="lineNum">      24 </span>            : // SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
<span class="lineNum">      25 </span>            : // LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
<span class="lineNum">      26 </span>            : // DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
<span class="lineNum">      27 </span>            : // THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
<span class="lineNum">      28 </span>            : // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
<span class="lineNum">      29 </span>            : // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
<span class="lineNum">      30 </span>            : 
<span class="lineNum">      31 </span>            : // Author: kenton@google.com (Kenton Varda)
<span class="lineNum">      32 </span>            : //  Based on original Protocol Buffers design by
<span class="lineNum">      33 </span>            : //  Sanjay Ghemawat, Jeff Dean, and others.
<span class="lineNum">      34 </span>            : //
<span class="lineNum">      35 </span>            : // Contains classes used to keep track of unrecognized fields seen while
<span class="lineNum">      36 </span>            : // parsing a protocol message.
<span class="lineNum">      37 </span>            : 
<span class="lineNum">      38 </span>            : #ifndef GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
<span class="lineNum">      39 </span>            : #define GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
<span class="lineNum">      40 </span>            : 
<span class="lineNum">      41 </span>            : #include &lt;assert.h&gt;
<span class="lineNum">      42 </span>            : #include &lt;string&gt;
<span class="lineNum">      43 </span>            : #include &lt;vector&gt;
<span class="lineNum">      44 </span>            : #include &lt;google/protobuf/stubs/common.h&gt;
<span class="lineNum">      45 </span>            : 
<span class="lineNum">      46 </span>            : namespace google {
<span class="lineNum">      47 </span>            : namespace protobuf {
<span class="lineNum">      48 </span>            :   namespace io {
<span class="lineNum">      49 </span>            :     class CodedInputStream;         // coded_stream.h
<span class="lineNum">      50 </span>            :     class CodedOutputStream;        // coded_stream.h
<span class="lineNum">      51 </span>            :     class ZeroCopyInputStream;      // zero_copy_stream.h
<span class="lineNum">      52 </span>            :   }
<span class="lineNum">      53 </span>            :   namespace internal {
<span class="lineNum">      54 </span>            :     class WireFormat;               // wire_format.h
<span class="lineNum">      55 </span>            :     class MessageSetFieldSkipperUsingCord;
<span class="lineNum">      56 </span>            :                                     // extension_set_heavy.cc
<span class="lineNum">      57 </span>            :   }
<span class="lineNum">      58 </span>            : 
<span class="lineNum">      59 </span>            : class Message;                      // message.h
<span class="lineNum">      60 </span>            : class UnknownField;                 // below
<span class="lineNum">      61 </span>            : 
<span class="lineNum">      62 </span>            : // An UnknownFieldSet contains fields that were encountered while parsing a
<span class="lineNum">      63 </span>            : // message but were not defined by its type.  Keeping track of these can be
<span class="lineNum">      64 </span>            : // useful, especially in that they may be written if the message is serialized
<span class="lineNum">      65 </span>            : // again without being cleared in between.  This means that software which
<span class="lineNum">      66 </span>            : // simply receives messages and forwards them to other servers does not need
<span class="lineNum">      67 </span>            : // to be updated every time a new field is added to the message definition.
<span class="lineNum">      68 </span>            : //
<span class="lineNum">      69 </span>            : // To get the UnknownFieldSet attached to any message, call
<span class="lineNum">      70 </span>            : // Reflection::GetUnknownFields().
<span class="lineNum">      71 </span>            : //
<span class="lineNum">      72 </span>            : // This class is necessarily tied to the protocol buffer wire format, unlike
<span class="lineNum">      73 </span>            : // the Reflection interface which is independent of any serialization scheme.
<span class="lineNum">      74 </span>            : class LIBPROTOBUF_EXPORT UnknownFieldSet {
<span class="lineNum">      75 </span>            :  public:
<span class="lineNum">      76 </span>            :   UnknownFieldSet();
<span class="lineNum">      77 </span>            :   ~UnknownFieldSet();
<span class="lineNum">      78 </span>            : 
<span class="lineNum">      79 </span>            :   // Remove all fields.
<span class="lineNum">      80 </span>            :   inline void Clear();
<span class="lineNum">      81 </span>            : 
<span class="lineNum">      82 </span>            :   // Remove all fields and deallocate internal data objects
<span class="lineNum">      83 </span>            :   void ClearAndFreeMemory();
<span class="lineNum">      84 </span>            : 
<span class="lineNum">      85 </span>            :   // Is this set empty?
<span class="lineNum">      86 </span>            :   inline bool empty() const;
<span class="lineNum">      87 </span>            : 
<span class="lineNum">      88 </span>            :   // Merge the contents of some other UnknownFieldSet with this one.
<span class="lineNum">      89 </span>            :   void MergeFrom(const UnknownFieldSet&amp; other);
<span class="lineNum">      90 </span>            : 
<span class="lineNum">      91 </span>            :   // Swaps the contents of some other UnknownFieldSet with this one.
<span class="lineNum">      92 </span>            :   inline void Swap(UnknownFieldSet* x);
<span class="lineNum">      93 </span>            : 
<span class="lineNum">      94 </span>            :   // Computes (an estimate of) the total number of bytes currently used for
<span class="lineNum">      95 </span>            :   // storing the unknown fields in memory. Does NOT include
<span class="lineNum">      96 </span>            :   // sizeof(*this) in the calculation.
<span class="lineNum">      97 </span>            :   int SpaceUsedExcludingSelf() const;
<span class="lineNum">      98 </span>            : 
<span class="lineNum">      99 </span>            :   // Version of SpaceUsed() including sizeof(*this).
<span class="lineNum">     100 </span>            :   int SpaceUsed() const;
<span class="lineNum">     101 </span>            : 
<span class="lineNum">     102 </span>            :   // Returns the number of fields present in the UnknownFieldSet.
<span class="lineNum">     103 </span>            :   inline int field_count() const;
<span class="lineNum">     104 </span>            :   // Get a field in the set, where 0 &lt;= index &lt; field_count().  The fields
<span class="lineNum">     105 </span>            :   // appear in the order in which they were added.
<span class="lineNum">     106 </span>            :   inline const UnknownField&amp; field(int index) const;
<span class="lineNum">     107 </span>            :   // Get a mutable pointer to a field in the set, where
<span class="lineNum">     108 </span>            :   // 0 &lt;= index &lt; field_count().  The fields appear in the order in which
<span class="lineNum">     109 </span>            :   // they were added.
<span class="lineNum">     110 </span>            :   inline UnknownField* mutable_field(int index);
<span class="lineNum">     111 </span>            : 
<span class="lineNum">     112 </span>            :   // Adding fields ---------------------------------------------------
<span class="lineNum">     113 </span>            : 
<span class="lineNum">     114 </span>            :   void AddVarint(int number, uint64 value);
<span class="lineNum">     115 </span>            :   void AddFixed32(int number, uint32 value);
<span class="lineNum">     116 </span>            :   void AddFixed64(int number, uint64 value);
<span class="lineNum">     117 </span>            :   void AddLengthDelimited(int number, const string&amp; value);
<span class="lineNum">     118 </span>            :   string* AddLengthDelimited(int number);
<span class="lineNum">     119 </span>            :   UnknownFieldSet* AddGroup(int number);
<span class="lineNum">     120 </span>            : 
<span class="lineNum">     121 </span>            :   // Adds an unknown field from another set.
<span class="lineNum">     122 </span>            :   void AddField(const UnknownField&amp; field);
<span class="lineNum">     123 </span>            : 
<span class="lineNum">     124 </span>            :   // Delete fields with indices in the range [start .. start+num-1].
<span class="lineNum">     125 </span>            :   // Caution: implementation moves all fields with indices [start+num .. ].
<span class="lineNum">     126 </span>            :   void DeleteSubrange(int start, int num);
<span class="lineNum">     127 </span>            : 
<span class="lineNum">     128 </span>            :   // Delete all fields with a specific field number. The order of left fields
<span class="lineNum">     129 </span>            :   // is preserved.
<span class="lineNum">     130 </span>            :   // Caution: implementation moves all fields after the first deleted field.
<span class="lineNum">     131 </span>            :   void DeleteByNumber(int number);
<span class="lineNum">     132 </span>            : 
<span class="lineNum">     133 </span>            :   // Parsing helpers -------------------------------------------------
<span class="lineNum">     134 </span>            :   // These work exactly like the similarly-named methods of Message.
<span class="lineNum">     135 </span>            : 
<span class="lineNum">     136 </span>            :   bool MergeFromCodedStream(io::CodedInputStream* input);
<span class="lineNum">     137 </span>            :   bool ParseFromCodedStream(io::CodedInputStream* input);
<span class="lineNum">     138 </span>            :   bool ParseFromZeroCopyStream(io::ZeroCopyInputStream* input);
<span class="lineNum">     139 </span>            :   bool ParseFromArray(const void* data, int size);
<span class="lineNum">     140 </span>            :   inline bool ParseFromString(const string&amp; data) {
<span class="lineNum">     141 </span>            :     return ParseFromArray(data.data(), static_cast&lt;int&gt;(data.size()));
<span class="lineNum">     142 </span>            :   }
<span class="lineNum">     143 </span>            : 
<span class="lineNum">     144 </span>            :  private:
<span class="lineNum">     145 </span>            : 
<span class="lineNum">     146 </span>            :   void ClearFallback();
<span class="lineNum">     147 </span>            : 
<span class="lineNum">     148 </span>            :   vector&lt;UnknownField&gt;* fields_;
<span class="lineNum">     149 </span>            : 
<span class="lineNum">     150 </span>            :   GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(UnknownFieldSet);
<span class="lineNum">     151 </span>            : };
<span class="lineNum">     152 </span>            : 
<span class="lineNum">     153 </span>            : // Represents one field in an UnknownFieldSet.
<span class="lineNum">     154 </span>            : class LIBPROTOBUF_EXPORT UnknownField {
<span class="lineNum">     155 </span>            :  public:
<span class="lineNum">     156 </span>            :   enum Type {
<span class="lineNum">     157 </span>            :     TYPE_VARINT,
<span class="lineNum">     158 </span>            :     TYPE_FIXED32,
<span class="lineNum">     159 </span>            :     TYPE_FIXED64,
<span class="lineNum">     160 </span>            :     TYPE_LENGTH_DELIMITED,
<span class="lineNum">     161 </span>            :     TYPE_GROUP
<span class="lineNum">     162 </span>            :   };
<span class="lineNum">     163 </span>            : 
<span class="lineNum">     164 </span>            :   // The field's tag number, as seen on the wire.
<span class="lineNum">     165 </span>            :   inline int number() const;
<span class="lineNum">     166 </span>            : 
<span class="lineNum">     167 </span>            :   // The field type.
<span class="lineNum">     168 </span>            :   inline Type type() const;
<span class="lineNum">     169 </span>            : 
<span class="lineNum">     170 </span>            :   // Accessors -------------------------------------------------------
<span class="lineNum">     171 </span>            :   // Each method works only for UnknownFields of the corresponding type.
<span class="lineNum">     172 </span>            : 
<span class="lineNum">     173 </span>            :   inline uint64 varint() const;
<span class="lineNum">     174 </span>            :   inline uint32 fixed32() const;
<span class="lineNum">     175 </span>            :   inline uint64 fixed64() const;
<span class="lineNum">     176 </span>            :   inline const string&amp; length_delimited() const;
<span class="lineNum">     177 </span>            :   inline const UnknownFieldSet&amp; group() const;
<span class="lineNum">     178 </span>            : 
<span class="lineNum">     179 </span>            :   inline void set_varint(uint64 value);
<span class="lineNum">     180 </span>            :   inline void set_fixed32(uint32 value);
<span class="lineNum">     181 </span>            :   inline void set_fixed64(uint64 value);
<span class="lineNum">     182 </span>            :   inline void set_length_delimited(const string&amp; value);
<span class="lineNum">     183 </span>            :   inline string* mutable_length_delimited();
<span class="lineNum">     184 </span>            :   inline UnknownFieldSet* mutable_group();
<span class="lineNum">     185 </span>            : 
<span class="lineNum">     186 </span>            :   // Serialization API.
<span class="lineNum">     187 </span>            :   // These methods can take advantage of the underlying implementation and may
<span class="lineNum">     188 </span>            :   // archieve a better performance than using getters to retrieve the data and
<span class="lineNum">     189 </span>            :   // do the serialization yourself.
<span class="lineNum">     190 </span>            :   void SerializeLengthDelimitedNoTag(io::CodedOutputStream* output) const;
<span class="lineNum">     191 </span>            :   uint8* SerializeLengthDelimitedNoTagToArray(uint8* target) const;
<span class="lineNum">     192 </span>            : 
<span class="lineNum">     193 </span>            :   inline int GetLengthDelimitedSize() const;
<span class="lineNum">     194 </span>            : 
<span class="lineNum">     195 </span>            :  private:
<span class="lineNum">     196 </span>            :   friend class UnknownFieldSet;
<span class="lineNum">     197 </span>            : 
<span class="lineNum">     198 </span>            :   // If this UnknownField contains a pointer, delete it.
<span class="lineNum">     199 </span>            :   void Delete();
<span class="lineNum">     200 </span>            : 
<span class="lineNum">     201 </span>            :   // Make a deep copy of any pointers in this UnknownField.
<span class="lineNum">     202 </span>            :   void DeepCopy();
<span class="lineNum">     203 </span>            : 
<span class="lineNum">     204 </span>            :   // Set the wire type of this UnknownField. Should only be used when this
<span class="lineNum">     205 </span>            :   // UnknownField is being created.
<span class="lineNum">     206 </span>            :   inline void SetType(Type type);
<span class="lineNum">     207 </span>            : 
<span class="lineNum">     208 </span>            :   uint32 number_;
<span class="lineNum">     209 </span>            :   uint32 type_;
<span class="lineNum">     210 </span>            :   union {
<span class="lineNum">     211 </span>            :     uint64 varint_;
<span class="lineNum">     212 </span>            :     uint32 fixed32_;
<span class="lineNum">     213 </span>            :     uint64 fixed64_;
<span class="lineNum">     214 </span>            :     mutable union {
<span class="lineNum">     215 </span>            :       string* string_value_;
<span class="lineNum">     216 </span>            :     } length_delimited_;
<span class="lineNum">     217 </span>            :     UnknownFieldSet* group_;
<span class="lineNum">     218 </span>            :   };
<span class="lineNum">     219 </span>            : };
<span class="lineNum">     220 </span>            : 
<span class="lineNum">     221 </span>            : // ===================================================================
<span class="lineNum">     222 </span>            : // inline implementations
<span class="lineNum">     223 </span>            : 
<span class="lineNum">     224 </span>            : inline void UnknownFieldSet::Clear() {
<span class="lineNum">     225 </span><span class="lineCov">     850796 :   if (fields_ != NULL) {</span>
<span class="lineNum">     226 </span><span class="lineNoCov">          0 :     ClearFallback();</span>
<span class="lineNum">     227 </span>            :   }
<span class="lineNum">     228 </span>            : }
<span class="lineNum">     229 </span>            : 
<span class="lineNum">     230 </span>            : inline bool UnknownFieldSet::empty() const {
<span class="lineNum">     231 </span><span class="lineCov">        272 :   return fields_ == NULL || fields_-&gt;empty();</span>
<span class="lineNum">     232 </span>            : }
<span class="lineNum">     233 </span>            : 
<span class="lineNum">     234 </span>            : inline void UnknownFieldSet::Swap(UnknownFieldSet* x) {
<span class="lineNum">     235 </span>            :   std::swap(fields_, x-&gt;fields_);
<span class="lineNum">     236 </span>            : }
<span class="lineNum">     237 </span>            : 
<span class="lineNum">     238 </span>            : inline int UnknownFieldSet::field_count() const {
<span class="lineNum">     239 </span>            :   return (fields_ == NULL) ? 0 : static_cast&lt;int&gt;(fields_-&gt;size());
<span class="lineNum">     240 </span>            : }
<span class="lineNum">     241 </span>            : inline const UnknownField&amp; UnknownFieldSet::field(int index) const {
<span class="lineNum">     242 </span>            :   return (*fields_)[index];
<span class="lineNum">     243 </span>            : }
<span class="lineNum">     244 </span>            : inline UnknownField* UnknownFieldSet::mutable_field(int index) {
<span class="lineNum">     245 </span>            :   return &amp;(*fields_)[index];
<span class="lineNum">     246 </span>            : }
<span class="lineNum">     247 </span>            : 
<span class="lineNum">     248 </span>            : inline void UnknownFieldSet::AddLengthDelimited(
<span class="lineNum">     249 </span>            :     int number, const string&amp; value) {
<span class="lineNum">     250 </span>            :   AddLengthDelimited(number)-&gt;assign(value);
<span class="lineNum">     251 </span>            : }
<span class="lineNum">     252 </span>            : 
<span class="lineNum">     253 </span>            : 
<span class="lineNum">     254 </span>            : inline int UnknownField::number() const { return number_; }
<span class="lineNum">     255 </span>            : inline UnknownField::Type UnknownField::type() const {
<span class="lineNum">     256 </span>            :   return static_cast&lt;Type&gt;(type_);
<span class="lineNum">     257 </span>            : }
<span class="lineNum">     258 </span>            : 
<span class="lineNum">     259 </span>            : inline uint64 UnknownField::varint() const {
<span class="lineNum">     260 </span>            :   assert(type() == TYPE_VARINT);
<span class="lineNum">     261 </span>            :   return varint_;
<span class="lineNum">     262 </span>            : }
<span class="lineNum">     263 </span>            : inline uint32 UnknownField::fixed32() const {
<span class="lineNum">     264 </span>            :   assert(type() == TYPE_FIXED32);
<span class="lineNum">     265 </span>            :   return fixed32_;
<span class="lineNum">     266 </span>            : }
<span class="lineNum">     267 </span>            : inline uint64 UnknownField::fixed64() const {
<span class="lineNum">     268 </span>            :   assert(type() == TYPE_FIXED64);
<span class="lineNum">     269 </span>            :   return fixed64_;
<span class="lineNum">     270 </span>            : }
<span class="lineNum">     271 </span>            : inline const string&amp; UnknownField::length_delimited() const {
<span class="lineNum">     272 </span>            :   assert(type() == TYPE_LENGTH_DELIMITED);
<span class="lineNum">     273 </span>            :   return *length_delimited_.string_value_;
<span class="lineNum">     274 </span>            : }
<span class="lineNum">     275 </span>            : inline const UnknownFieldSet&amp; UnknownField::group() const {
<span class="lineNum">     276 </span>            :   assert(type() == TYPE_GROUP);
<span class="lineNum">     277 </span>            :   return *group_;
<span class="lineNum">     278 </span>            : }
<span class="lineNum">     279 </span>            : 
<span class="lineNum">     280 </span>            : inline void UnknownField::set_varint(uint64 value) {
<span class="lineNum">     281 </span>            :   assert(type() == TYPE_VARINT);
<span class="lineNum">     282 </span>            :   varint_ = value;
<span class="lineNum">     283 </span>            : }
<span class="lineNum">     284 </span>            : inline void UnknownField::set_fixed32(uint32 value) {
<span class="lineNum">     285 </span>            :   assert(type() == TYPE_FIXED32);
<span class="lineNum">     286 </span>            :   fixed32_ = value;
<span class="lineNum">     287 </span>            : }
<span class="lineNum">     288 </span>            : inline void UnknownField::set_fixed64(uint64 value) {
<span class="lineNum">     289 </span>            :   assert(type() == TYPE_FIXED64);
<span class="lineNum">     290 </span>            :   fixed64_ = value;
<span class="lineNum">     291 </span>            : }
<span class="lineNum">     292 </span>            : inline void UnknownField::set_length_delimited(const string&amp; value) {
<span class="lineNum">     293 </span>            :   assert(type() == TYPE_LENGTH_DELIMITED);
<span class="lineNum">     294 </span>            :   length_delimited_.string_value_-&gt;assign(value);
<span class="lineNum">     295 </span>            : }
<span class="lineNum">     296 </span>            : inline string* UnknownField::mutable_length_delimited() {
<span class="lineNum">     297 </span>            :   assert(type() == TYPE_LENGTH_DELIMITED);
<span class="lineNum">     298 </span>            :   return length_delimited_.string_value_;
<span class="lineNum">     299 </span>            : }
<span class="lineNum">     300 </span>            : inline UnknownFieldSet* UnknownField::mutable_group() {
<span class="lineNum">     301 </span>            :   assert(type() == TYPE_GROUP);
<span class="lineNum">     302 </span>            :   return group_;
<span class="lineNum">     303 </span>            : }
<span class="lineNum">     304 </span>            : 
<span class="lineNum">     305 </span>            : inline int UnknownField::GetLengthDelimitedSize() const {
<span class="lineNum">     306 </span>            :   GOOGLE_DCHECK_EQ(TYPE_LENGTH_DELIMITED, type());
<span class="lineNum">     307 </span>            :   return static_cast&lt;int&gt;(length_delimited_.string_value_-&gt;size());
<span class="lineNum">     308 </span>            : }
<span class="lineNum">     309 </span>            : 
<span class="lineNum">     310 </span>            : inline void UnknownField::SetType(Type type) {
<span class="lineNum">     311 </span>            :   type_ = type;
<span class="lineNum">     312 </span>            : }
<span class="lineNum">     313 </span>            : 
<span class="lineNum">     314 </span>            : 
<span class="lineNum">     315 </span>            : }  // namespace protobuf
<span class="lineNum">     316 </span>            : 
<span class="lineNum">     317 </span>            : }  // namespace google
<span class="lineNum">     318 </span>            : #endif  // GOOGLE_PROTOBUF_UNKNOWN_FIELD_SET_H__
</pre>
      </td>
    </tr>
  </table>
  <br>

  <table width="100%" border=0 cellspacing=0 cellpadding=0>
    <tr><td class="ruler"><img src="../../../../glass.png" width=3 height=3 alt=""></td></tr>
    <tr><td class="versionInfo">Generated by: <a href="http://ltp.sourceforge.net/coverage/lcov.php" target="_parent">LCOV version 1.12</a></td></tr>
  </table>
  <br>

</body>
</html>
